import request from '@/utils/request'

// 获取置换token
export const getNavList = (params = {}) => {
  return request({
    url: `/getAppList`,
    method: 'get',
    params: params
  })
}

// 获取整体菜单
export const getAppMenuList = (params = {}) => {
  return request({
    url: `/sys/appMenuResources/getAppMenuList/` + params.appType,
    method: 'get'
  })
}

//获取所有的应用
export const getIframeRoutes = (params = {}) => {
  return request({
    url: `/sys/sysMenu/getIframeRoutes`,
    method: 'get',
    params: params
  })
}